-- GENERATED SPELL FOR [Spectral Retainer] --


function spell0_16410(pUnit, Event) --@Oath of Fealty,n/a--
pUnit:FullCastSpellOnTarget(29546,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16410', 15328, 1)
end

function spell1_16410(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(29578,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16410', 15000, 1)
end

function Sorts_16410(pUnit, Event)
local choix_sorts_16410 = math.random(0, 1)
if choix_sorts_16410 == 0 then
pUnit:RegisterEvent('spell0_16410', 1, 1)
end
if choix_sorts_16410 == 1 then
pUnit:RegisterEvent('spell1_16410', 1, 1)
end
end

function mob16410_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16410', math.random(1500, 3000), 1)
end

function mob16410_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16410_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16410_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16410, 1, 'mob16410_Action')
RegisterUnitEvent(16410, 2, 'mob16410_Leave')
RegisterUnitEvent(16410, 3, 'mob16410_Kill')
RegisterUnitEvent(16410, 4, 'mob16410_Die')
